"""
MiniCoder CLI - 轻量级、高效且可扩展的命令行AI编程助手

一个专为开发者设计的AI编程工具，支持多模型、本地部署和项目级上下文理解。
"""

__version__ = "0.1.0"
__author__ = "MiniCoder Team"
__email__ = "team@minicoder.dev"

# 延迟导入，避免在缺少依赖时立即失败
def main():
    """CLI入口函数"""
    try:
        from .cli import main as cli_main
        return cli_main()
    except ImportError as e:
        print(f"错误: 缺少必要的依赖包: {e}")
        print("请运行: pip install click rich openai requests pyyaml")
        return 1

__all__ = ["main", "__version__"]
